<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<title>Admin page for {{ options.blog_name }}</title>
	<link rel="stylesheet" href="/static/admin.css" type="text/css" charset="utf-8" />	
	
	<script src="/static/js_quicktags.js" type="text/javascript"></script>
 	<script src="/static/mootools-1.2-core.js" type="text/javascript"></script> 
	<script src="/static/mootools-1.2-more.js" type="text/javascript"></script> 
	<script src="/static/growl.js" type="text/javascript"></script>

	{% block js_includes %}
	
		
	{% endblock %}

	{% block head %}
	
	{% endblock %}

	<script type="text/javascript">
		var s;	
		window.addEvent('domready', function(){
				Growl.Error = new Gr0wl.Smoke('/static/images/error.png');
				Growl.Action = new Gr0wl.Smoke('/static/images/action.png');
				{% block jsfuncs %}
				{% endblock %}
			});
	</script>
	

</head>

<body>
<div id="header">
	<div id="login_box">
{% if user %}
	你好 {{ user.nickname }} || <a href="{{ logout_url }}">登出</a> || <a href="/">返回首页</a>
{% endif %}
	</div>	
	<div id="menu">
	<br/>
	<ul>
	{% block navigation %}
		<li{% if edit_post or new_post or posts_list %} class="current"{% endif %}><a href="/admin/posts/">文章</a></li>
		<li{% if edit_page or new_page or pages_list %} class="current"{% endif %}><a href="/admin/pages/">页面</a></li>
		<li{% if categories %} class="current"{% endif %}><a href="/admin/categories/">分类</a></li>
		<li{% if comments %} class="current"{% endif %}><a href="/admin/comments/">评论</a></li>
		<li{% if filemanager %} class="current"{% endif %}><a href="/admin/filemanager">文件管理</a></li>
		<li{% if codemanager %} class="current"{% endif %}><a href="/admin/codemanager">插件</a></li>
		<li{% if global_options %} class="current"{% endif %}><a href="/admin/options/">选项</a></li>
		<li{% if links or widgets or inactive %} class="current"{% endif %}><a href="/admin/sidebar/">挂件</a></li>
	{% endblock %}
	</ul>
	</div>
</div>
	{% block menu2 %}
	{% endblock %}
<div id="header_end"></div>

<div id="page">
	<div id="content" {% if post_categories  %} class="with_sb"{% endif %}>
		{{ content }}
		{% block content %}
		{% endblock %}


	</div>
	
		{% block sidebar %}
		{% endblock %}

</div>
</body>
</html>
